Skip to content

Conversation

@xaliciayang
Copy link
Contributor

@xaliciayang xaliciayang commented Sep 29, 2020

Description

Enabling customer to set Backup Storage Redundancy (StorageAccountType in REST API) via --backup-storage-redundancy parameter by adding parameter to the following cmds:
az sql db create
az sql db update
az sql db restore
az sql db copy
az sql db replica create
az sql db ltr-backup restore

Testing Guide

Test all of the above commands with additional --backup-storage-redundancy parameters

History Notes

[SQL] BREAKING CHANGE: az sql db create: Add --backup-storage-redundancy parameter; add warning for unspecified bsr/bsr == Geo.

Same for remaining cmds.


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan yonzhan added this to the S177 milestone Sep 29, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 29, 2020

SQL

'LRS': 'Local',
'GRS': 'Geo',
'ZRS': 'Zone'
}.get(self, 'Invalid')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 661 to 665
c.argument('storage_account_type',
arg_type=backup_storage_redundancy_param_type,
options_list=['--backup-storage-redundancy', '--bsr'],
help='Backup storage redundancy used to store backups')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid duplicate. use CLIArgumentType to abstract common argument type and reuse it for command

@Juliehzl
Copy link
Contributor

Juliehzl commented Oct 9, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants